package com.clover.templates.util;

import org.springframework.boot.context.properties.bind.Binder;

/**
 * 参数绑定工具类
 * @author FoLafClover
 * @date 2018/5/6/006
 */
public class BinderUtil {
    private static Binder binder = null;

    private BinderUtil(){};

    public static synchronized Binder getBinder(){
        if( binder == null){
            binder = Binder.get(SpringUtil.getApplicationContext().getEnvironment());
        }
        return binder;
    }
}
